{% extends 'base.html' %}
{% block title %}学生管理{% endblock %}
{% block main %}
    <form method="POST" action="">

        <div class="mb-3">
            <label>班级</label>
            <select name="class_id">
                <option value="">请选择班级</option>
                {% for class in classes %}
                    <option value="{{ class.id }}">{{ class.name }}</option>
                {% endfor %}
            </select>
        </div>
        <div class="mb-3">
            <label>学生</label>
            <select name="userid">
                <option value="">请选择学生</option>
                {% for user in users %}
                    <option value="{{ user.user.id }}">{{ user.user.username }}</option>
                {% endfor %}
            </select>
        </div>
        {% if msg %}
            <p class="success">{{ msg }}</p>
        {% endif %}

        <div class="mb-3 mt-3">
            <button class="btn btn-primary w-100">点击提交</button>
        </div>
    </form>


{% endblock %}